// 搜索框
.search-bar {
  @search_bar_width: 266px;
  @search_bar_height: 25px;
  @search_bar_radius: 5px;
  height: 36px;
  @media screen and (min-width: 992px) {
    margin-right: -15%;
  }
  @media screen and (max-width: 992px) and (min-width: 768px) {
    margin-right: -7%;
  }
  @media screen and (max-width: 768px) {
    margin-right: 0;
  }
  form {
    position: relative;
    top: 50%;
    margin-top: -@search_bar_height * .5;
    width: @search_bar_width;
    @media screen and (max-width: 768px) {
      width: floor(@search_bar_width * .5);
    }
    border: none;
    border-radius: @search_bar_radius;
    overflow: hidden;
  }
  input {
    width: 100%;
    font-size: 12px;
    padding: 0 11px;
    border: none;
    line-height: @search_bar_height;
    &:focus {
      outline: none;
    }
  }
  .search-submit{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20%;
    border: none;
    background-color: @main-color;
    line-height: @search_bar_height;
    .search-bar__icon {
      color: #E2E2E2;
      & i {
        cursor: pointer;
      }
    }
  }
}

// 文章详情侧边栏
.arcticlist-left-header {
  background: url("../images/sidebar-bg.jpg");
  background-size: 100% auto;
  text-align: center;
}

.arcticlist-left-header h3 {
  color: white;
  padding-top: 50px;
  padding-bottom: 40px;
}

.arcticlist-left-list {
  padding: 16px 0px;
  li {
    text-align: center;
    padding: 0 12px;
    font-size: 14px;
    color: @header-font-color;
    background-color: white;
    position: relative;
    height: 45px;
    overflow: hidden;
    &:nth-last-child(1) {
      > a {
        border-bottom: none;
      }
    }
    > a {
      padding: 12px 0;
      display: block;
      width: 100%;
      height: 100%;
      color: #909090;
      border-bottom: 1px solid #efefef;
      box-sizing: border-box;
    }
  }
}

.arcticlist-left-list li:hover,
.arcticlist-left-list .active {
  background-color: @main-color;
  border-color: @main-color;
  color: white;
  position: relative;
  > a {
    border-bottom: none;
    color: white;
  }
  &:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    margin-top: -10px;
    right: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid #f1f1ef;
    border-bottom: 10px solid transparent;
  }
}

.arcticlist-left-footer .row {
  margin: 0px;
}

.iconf {
  margin-bottom: 8px;
  background-color: @arctic-icon-color;
  padding: 0;
  text-align: center;
  position: relative;
  width: 31%;
  float: left;
  margin-left: 3%;
}

.iconf1 {
  margin-left: 0px;
}

// 文章详情右侧非通用部分
.arcticlist-right {
  background: white;
}

// 文章详情右侧通用部分
.arcticlist-right-list {
  padding: 10px 0px;
}

.arcticlist-common {
  width: 100%;
}

.arcticlist-right-header {
  color: @main-color;
}

.header-title {
  border-left: 6px solid @main-color;
  position: relative;
}

.header-title:after {
  content: "";
  display: block;
  position: absolute;
  margin-left: -6px;
  border-bottom: solid 3px @main-color;
  width: 100%;
  margin-top: 8px;
}

.header-title h3 {
  padding-left: 18px;
}

.iconf span {
  color: white;
  position: absolute;
  left: 14px;
  right: 14px;
  font-size: 10px;
  bottom: 6px;
}

.arcticlist-body {
  padding: 40px 0;
}

.arcticlist-body img {
  max-width: 100%;
  height: auto;
}

.arcticlist-content {
  padding: 15px 0;
}

.arcticlist-header span {
  font-size: 16px;
  color: black;
}

.arcticlist-arctice {
  padding: 8px 0;
}

.arcticlist-arctice span {
  color: #969696;
  font-size: 12px;
}

.arcticlist-foot-page {
  text-align: center;
  nav {
    display: inline-block;
  }
}

//.arcticlist-foot-page li a {
//  margin-left: 3px;
//  color: black;
//  border-radius: 5px;
//}
//.arcticlist-foot-page li{
//border-radius: 5px;
//}
//.arcticlist-foot-page .active a,
//.arcticlist-foot-page .active a:hover {
//  background-color: @main-color;
//  border-color: @main-color;
//}

// banner图
.slide-show {
  background-color: #f7f7f7;
  &__bg {
    height: 315px;
    width: 100%;
    position: relative;
    z-index: 0;
  }
  &__menu {
    position: absolute;
    right: 38px;
    top: 50%;
    margin-top: -108px;
    &-item {
      width: 46px;
      height: 46px;
      background-color: #fff;
      margin-bottom: 8px;
      border-radius: 2px;
      .bg {
        width: 100%;
        height: 100%;
        position: relative;
        &:hover .text {
          display: block;
        }
        .text {
          padding: 5px 0;
          width: 100%;
          height: 100%;
          font-size: 12px;
          text-align: center;
          line-height: 18px;
          background-color: @main-color;
          color: #fff;
          display: none;
        }
        .qr-code {
          position: absolute;
          display: none;
          width: 150px;
          padding: 10px;
          background-color: #fff;
          bottom: 0;
          left: -160px;
          img {
            width: 100%;
            height: auto;
          }
          .des {
            text-align: center;
            margin-top: 4px;
            font-size: 12px;
            color: @main-color;
            font-weight: bold;
          }
        }
        &.time {
          background: url("../images/icon/slide-icon-2.png") center no-repeat;
          background-size: 100% 100%;
        }
        &.care {
          background: url("../images/icon/slide-icon-3.png") center no-repeat;
          background-size: 100% 100%;
        }
        &.wechat {
          background: url("../images/icon/slide-icon-4.png") center no-repeat;
          background-size: 100% 100%;
          .text {
            line-height: 36px;
          }
          &:hover {
            .qr-code {
              display: block;
            }
          }
        }
        &.app {
          background: url("../images/icon/slide-icon-5.png") center no-repeat;
          background-size: 100% 100%;
          .text {
            line-height: 36px;
          }
          &:hover {
            .qr-code {
              display: block;
            }
          }
        }
      }
    }
  }
}

// 轮播图
.swiper-button-prev,
.swiper-button-next {
  background: none;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  height: 20px;
  line-height: 20px;
  width: 20px;
  border-radius: 10px;
  &:focus {
    outline: none;
  }
}

// 科室导航选项卡
.department__tab {
  height: 36px;
  line-height: 36px;
  font-size: 16px;
  color: #fff;
  border-radius: 2px;
  text-align: center;
  position: relative;
  cursor: pointer;
  &.red {
    background-color: #8e3843;
    &:after {
      border-color: #8e3843 transparent transparent transparent;
    }
  }
  &.green {
    background-color: #01a992;
    &:after {
      border-color: #01a992 transparent transparent transparent;
    }
  }
  &.yellow {
    background-color: #d3b195;
    &:after {
      border-color: #d3b195 transparent transparent transparent;
    }
  }
  &.orange {
    background-color: #eb8060;
    &:after {
      border-color: #eb8060 transparent transparent transparent;
    }
  }
  &:after {
    content: "";
    display: none;
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
  }
  &.active:after {
    display: block;
  }
}

.department__list-item {
  height: 36px;
  line-height: 36px;
  border: #d1d1d1 solid 1px;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
  padding-left: 16px;
  width: 100%;
  .angle {
    border-right: #d1d1d1 solid 1px;
    text-align: center;
    width: 16px;
    position: absolute;
    line-height: 35px;
    left: 0;
    color: #d1d1d1;
  }
  .text {
    text-align: center;
    color: #7d7d7d;
    .text-ellipsis();
  }
  &.active {
    border: #d3b195 solid 1px;
    .angle {
      border-right: #d3b195 solid 1px;
      color: #d3b195;
    }
    .text {
      color: #d3b195;
    }
  }
}

// 新闻卡片（暂时只用于党建）
.news-card {
  &__header {
    padding-bottom: 16px;
    border-bottom: #cdcdcd solid 1px;
    position: relative;
  }
  &__title {
    font-size: 18px;
    color: @main-color;
    font-weight: bold;
  }
  &__know-more {
    position: absolute;
    right: 0;
    top: 0;
    color: #878788;
    font-size: 12px;
    border: solid 1px #e1e1e0;
    padding: 0 6px;
    border-radius: 4px;
    text-align: center;
  }
  &__body {
    padding-top: 16px;
  }
  &__item {
    margin-bottom: 20px;
  }
  &__item-name {
    font-size: 12px;
    float: left;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 80%;
    &:hover {
      color: #808080;
    }
  }
  &__item-date {
    font-size: 12px;
    float: right;
    color: #9f9f9f;
  }
}

// 信息卡（科研页）
.info-card {
  border: 1px solid #e0e0e0;
  position: relative;
  padding: 16px;
  min-height: 260px;
  &__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
  }
  &__know-more {
    position: absolute;
    right: 16px;
    top: 16px;
    color: #878788;
    font-size: 12px;
    border: solid 1px #e1e1e0;
    padding: 0 6px;
    border-radius: 4px;
    text-align: center;
  }
  &__img-wrapper {
    float: left;
    width: 50%;
    img {
      width: 100%;
      height: auto;
    }
  }
  &__content-wrapper {
    float: left;
    width: 50%;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.5em;
    color: #575757;
    &-detail {
      height: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
      a {
        white-space: pre-line;
      }
    }
  }
  &__single-list {
    padding-top: 4px;
    .info-card__list-item {
      padding-bottom: 12px;
      margin-bottom: 12px;
    }
    .info-card__item-title {
      float: left;
      width: 75%;
    }
    .info-card__item-date {
      float: right;
    }
    .info-card__item-title-leftf {
      max-width: 75%;
    }
  }
  &__list-item {
    font-size: 12px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: solid 1px #f1f1f1;
    &:nth-last-child(1) {
      border-bottom: none;
      padding-bottom: 0;
      margin-bottom: 0;
    }
  }
  &__item-title {
    display: block;
    color: @text-color;
    .text-ellipsis();
    &:hover {
      color: #808080;
    }
  }
  &__item-date {
    color: #7e7e7e;
  }
}

// 科室页和医生页的顶部导航条
.department.banner {
  padding: 20px 0;
  .logo {
    //margin: 0 -15px;
    text-align: center;
    height: 60px;
    img {
      height: 60px;
      width: auto;
      @media (max-width: 768px) {
        heigth: 74px;
      }
    }
  }
  .department-name {
    font-size: 22px;
    //margin-right: 8px;
  }
  ul li a {
    color: black;
    &:hover {
      color: @main-color;
      background-color: rgba(0,0,0,0);
    }
  }
}

//视频列表
.arcticlist-right-body-video {
  min-height: 230px;
  &__title {
    padding: 8px 0;
    font-size: 14px;
    color: #4d4d4d;
  }
  &__foot {
    padding-bottom: 8px;
    font-size: 8px;
    color: #808080;
  }
  & a {
    color: black;
  }
}

//文章的新闻列表
.arcticlist-right-body-sdetail {
  &:nth-child(1) {
    padding-top: 0;
  }
  padding: 24px 0;
  border-bottom: solid 1px #f1f1f1;
  &__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
  }
  &__more {
    padding-top: 8px;
  }

  &__time {
    background: #bf6b78;
    color: white;
    padding: 6.5px 0;
    text-align: center;
    width: 65px;
  }
  &__time p {
    font-size: 1px;
  }
  &__right {
    padding-top: 4px;
  }
  & a {
    color: black;
  }
}

//科学研究
.arcticlist-header__body {
  padding-top: 14px;
  font-size: 14px;
  color: #808080;
  text-indent: 30px;
}

.arcticlist-header {
  .info-card__know-more {
    top: 0 !important;
  }
}

.arcticlist-content {
  &__research {
    &:nth-child(1) {
      padding-top: 0;
    }
    padding: 24px 0;
    border-bottom: solid 1px #f1f1f1;
  }
}

//浏览更多 非绝对定位
.morenp {
  color: #959595 !important;
  font-size: 8px !important;
  border: solid 1px #959595;
  padding: 3px 10px;
  border-radius: 8px;
  text-align: center;
}

//图片侧边的三角形以及时间
.arcticlist-img {
  & img {
    height: 106px;
  }
  position: relative;
  &__time {
    background: #8f3743;
    color: white;
    text-align: center;
    top: 14px;
    left: 8px;
    font-size: 12px;
    padding: 2px 8px;
    position: absolute;
    &:after {
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-top: 8px solid @main-color;
      border-left: 8px solid transparent;
      position: absolute;
      left: 0px;
    }
  }
}

// 医生列表
.icon-msg {
  @total-width: 100%;
  @total-height: 0.25 * @total-width;
  width: @total-width+0px;
  &-item {
    float: left;
    width: 0.2 * @total-width;
    height: @total-height;
    padding: 0 15px;
    &-box {
      position: relative;
    }
    &__img {
      position: relative;
      overflow: hidden;
      width: 100%;
      margin-bottom: 30px;
    }
    &__img:after {
      content: "";
      display: block;
      margin-top: 140%;
    }
    &__img > img {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }
    &__msg {
      position: absolute;
      bottom: 0;
      width: 100%;
      min-height: 25%;
      padding: 0 10px;
      padding-top: 10px;
      padding-bottom: 5px;
      font-size: 12px;
      color: white;
      text-align: center;
      background-color: fade(black, 50%);
      &-name {
        font-size: 1.1em;
      }
      &-job {
        margin-top: 0.5em;
        font-size: 1em;
        //   word-break: keep-all;
      }
    }
  }
}

//分页按钮
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
  z-index: 3;
  color: #fff;
  cursor: default;
  border-radius: 5px;
  background-color: @main-color !important;
  border-color: @main-color !important;
}

.pagination > li > a, .pagination > li > span {
  margin-left: 4px;
  border-radius: 5px;
  color: @main-color;
  @media (max-width: 768px) {
    padding: 3px 6px;
  }
}

.pagination > li > a:hover {
  color: @main-color;
}

.page_zs7y__form {
  margin-left: 18px;
  display: inline-block;
  width: 84px;
  position: relative;
  top: -32px;
  &:after {
    content: "";
    display: block;
    width: 1px;
    height: 24px;
    background-color: #ddd;
    position: absolute;
    top: 30px;
    right: 42px;
  }
  input {
    margin: 24px 0;
    &:focus {
      outline: none;
    }
  }
  input[type="hidden"] {
    display: none;
  }
  input[type="text"] {
    width: 100%;
    height: 34px;
    padding-left: 4px;
    border-radius: 4px;
    border: solid 1px #ddd;
  }
  input[type="submit"] {
    position: absolute;
    top: 0;
    right: 0;
    height: 34px;
    width: 42px;
    background: transparent;
    border: none;
  }
}

.now-location {
  & a {
    color: inherit;
  }
  color: #585858;
}

.arcticlist-header__time {
  color: #bfbfbf;
  font-size: 14px;
}

.arcticlist-header-time {
  span {
    color: #bfbfbf;
    font-size: 14px;
  }
}

.reservation {
  margin-top: 0px;
}

.department_nav {
  display: none;
}

//by-xxt
.department_back_to_home {
  float: right;
  height: 26px;
  width: 74px;
  padding: 4px 0px 3px 1px;
  font-size: 12px;
  border: solid 1px #e1e1e0;
  border-radius: 8px;
  text-align: center;
  color: gray;
  top: 17px;
  position: relative;
  @media (max-width: 768px) {
    top: 0px;
    margin: 10px 0;
  }
}

.bigevent-swiper {
  margin-top: 25px;
}

#index-search {
  position: relative;
  top: -30px;
  right: -200px;
  height: 30px;
}

.mid-more {
  font-size: 12px;
  border: solid 1px #e1e1e0;
  padding: 0 6px;
  border-radius: 4px;
  text-align: center;
}

//by xxt 面包屑
.home__nav {
  .breadcrumb {
    //padding-left: 0;
    margin-top: 10px;
    //margin-left: -15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgb(88, 88, 88);
    background: none;
    li + li:before {
      content: '>';
    }
    a {
      color: rgb(88, 88, 88);
    }
  }
}

@media (max-width: 768px) {
  .doctor-detail {
    &__nav {
      font-size: 14px !important;
    }
  }
}

.recruitment-btn {
  background: @main-color;
  padding: 5px 24px;
  line-height: 24px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  @media (max-width: 768px) {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

.recruitment__ext {
  margin-top: 12px;
  @media (max-width: 768px) {
    margin-top: 0px;
  }
}
